//
//  EastProgressHud.swift
//  EastNetWorkProject
//
//  Created by hlt on 2023/10/27.
//

import UIKit
import SVProgressHUD
 class EasyProgressHud:NSObject{
  @objc  static  func showInfo(_ status:String){
        SVProgressHUD.setDefaultStyle(.dark)
        SVProgressHUD.setDefaultMaskType(.clear)
        SVProgressHUD.setDefaultAnimationType(.native)
        SVProgressHUD.setMinimumDismissTimeInterval(1.8)
        SVProgressHUD.setMaximumDismissTimeInterval(5)
        SVProgressHUD.showInfo(withStatus: status)
        SVProgressHUD.setImageViewSize(CGSizeZero)
    }
    
     @objc static func show(){
        SVProgressHUD.setDefaultStyle(.dark)
        SVProgressHUD.setDefaultMaskType(.clear)
        SVProgressHUD.setDefaultAnimationType(.native)
        SVProgressHUD.setMinimumDismissTimeInterval(0.5)
        SVProgressHUD.setMaximumDismissTimeInterval(5)
        SVProgressHUD.show()
        SVProgressHUD.setImageViewSize(CGSizeZero)
    }
    
     @objc static func dismiss(){
        SVProgressHUD.dismiss()
  
    }
    
     @objc static func popActivity(){
        SVProgressHUD.popActivity()
    }
}







